import request from '@/utils/request';

// 从vuex中读取
import store from '@/store'

//批量删除班级
export const deleteClass = (list) => {
    return request({
        url: '/eduM2/eduClass/deleteByClassId',
        method: 'post',
        data: list
    })
}

//新增班级
export const addClass = (row) => {
    return request({
        url: '/eduM2/eduClass/addClass',
        method: 'post',
        data: row
    })
}

//修改班级信息
export const updateClass = (row) => {
    return request({
        url: '/eduM2/eduClass/updateClass',
        method: 'post',
        data: row
    })
}

//分页查询班级列表
export const queryList = (params, current, limit) => {
    return request({
        url: '/eduM2/eduClass/pageClassByCondition/' + store.getters.companyId + '/' + current + '/' + limit,
        method: 'post',
        data: params
    })
}


